package com.isoftstone.studentregistration.mapper;

import com.isoftstone.studentregistration.pojo.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 * @version v1.0
 * @date 2025/9/7 9:52
 */
@Mapper
public interface UserMapper {
    int insert(Users user);
    int update(Users user);
    int delete(Integer id);
    List<Users> queryAllStudents(Users users);
    List<Users> queryAllStudents();
    Users queryByPhone(String phone);

    Users login(@Param("phone") String phone,@Param("password") String password);
}
